{extend name="Base/common" /}
{block name="content"}
<!-- BEGIN PAGE -->

<div class="page-content" style="padding-top: 10px;">

    <div class="container-fluid">
        <!-- 面包屑开始-->
        <div class="row-fluid">
            <div class="span12">

                <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                <h3 class="page-title">
                    用户列表
                </h3>
                <ul class="breadcrumb">
                    <li>
                        <i class="icon-home"></i>
                        <a href="/ops/User/index">列表</a>
                        <i class="icon-angle-right"></i>
                    </li>
                    <li>
                        <a href="/ops/User/index">用户列表</a>
                        <i class="icon-angle-right"></i>
                    </li>
                    <li>
                        文章列表
                    </li>

                </ul>
                <!-- END PAGE TITLE & BREADCRUMB-->
            </div>
        </div>
        <!-- 面包屑结束 -->

        <!-- 带全选的表格开始 -->
        <div class="row-fluid">

            <div class="span12">

                <!-- BEGIN SAMPLE TABLE PORTLET-->

                <div class="portlet">

                    <div class="portlet-title">

                        <div class="caption"><i class="icon-reorder"></i>用户列表</div>

                        <!-- 表格内容整体操作结束 -->

                    </div>

                    <div class="portlet-body no-more-tables">

                        <table class="table-bordered table-striped table-condensed cf" style="text-align: center;">

                            <thead class="cf">

                            <tr>
                                <th>用户Id</th>

                                <th>昵称</th>

                                <th>头像</th>

                                <th>地区</th>

                                <th style="cursor: pointer" onclick="redirect1('money')">金额</th>

                                <th style="cursor: pointer" onclick="redirect1('tiger_tee')">虎牙</th>

                                <th style="cursor: pointer" onclick="redirect1('code')">推广码</th>

                                <th>注册时间</th>
                                <th>操作</th>

                            </tr>

                            </thead>

                            <tbody>

                            {volist name="list" id="vo"}
                            <tr class="">

                                <td>{$vo.id}</td>

                                <td>{$vo.nickname}</td>

                                <td><img src="{$vo.avatar_url}" style="width: 100px;height: 100px;"></td>

                                <td>{$vo.country} . {$vo.province} . {$vo.city}</td>

                                <td>{$vo.money}</td>

                                <td>{$vo.tiger_tee}</td>

                                <td>{$vo.code}</td>

                                <td>{$vo.create_time}</td>
                                <td>

                                    {if condition="$vo.code"}
                                    <a href="/ops/user/detail?id={$vo.id}">查看详情</a>
                                    {/if}

                                </td>

                            </tr>
                            {/volist}

                            </tbody>

                        </table>

                    </div>

                </div>
                {$list->render()}
                <!-- END SAMPLE TABLE PORTLET-->

            </div>
        </div>
        <!-- 带全选的表格结束btn-sort-edit -->

    </div>
</div>

<script>

    function redirect1(a) {
        location.href = "/ops/user/index?order="+a
    }

</script>
<!-- END PAGE -->
{/block}